package com.easybbs.entity.vo.request;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @Author: yudaxian
 * @Description: TODO
 * @DateTime: 2024/10/28 21:53
 **/
@Data
public class UserCenterLoadMessageListReqVO {

    @Min(value = 0)
    @Max(value = 4)
    @NotNull
    private Integer code;

    private Integer pageNo;

    public Integer getPageNo() {
        return pageNo == null? 1 : pageNo;
    }
}
